import http from './http/index'

export const startWatch = new class {
  api = 'log.StartWatch'
  fn = (page, num) => {
    return http.post(page, [{
      service: this.api,
      args: num
    }])
  }
}()

export const readLogs = new class {
  api = 'log.ReadLogs'
  fn = (page) => {
    return http.post(page, [{
      service: this.api
    }])
  }
}()
